﻿@model ITProject.WebUI.Models.ProjectUser.AddTopicProjectUserViewModel
@{
    ViewBag.Title = "AddTopic";
}
<div class="Pmenu">
  @Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
        new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = (string)ViewData["ProjectName"], Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>

<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectUserMenu, new List<string> { "F", ViewData["ProjectName"].ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane" >
<fieldset>
<legend>    Dodaj temat</legend>
@{ Html.BeginForm(MVC.ProjectUser.ActionNames.AddTopic, MVC.ProjectUser.Name);}
@Html.HiddenFor(x => x.ProjectID)
 @Html.ValidationSummary(true)
<div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.Topic)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model=>model.Topic)</p>
            @Html.TextBoxFor(x => x.Topic, new { @class = "input", @style = "600px" })
            </div>
        </div>

<div class="editor">
            <div class="editor-label">
                @Html.LabelFor(model => model.PostContent)
            </div>
            <div class="editor-field">
            <p class="validation">@Html.ValidationMessageFor(model=>model.PostContent)</p>
            @Html.TextAreaFor(x => x.PostContent, new { @class = "input" , @style="500px"})
            </div>
        </div>        

        <div class="DSubmit">
<input type="submit" value="Dodaj wątek" class="button"/>
</div>
@{Html.EndForm();}
</fieldset>
</div>
<div class="clear">
</div>
